home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscTeePalette / MiscTeePalette.m < prev    next >
Encoding:
Text File  |  1994-10-22  |  1.3 KB  |  45 lines

  1. //
  2. //    MiscTeePalette.m -- Sets up the palette connections between the visual
  3. //                        and the actual objects.
  4. //
  5. //        Written by David Fedchenko.  Copyright 1994 by David Fedchenko.
  6. //        Additions for MiscDistributor by Don Yacktman.
  7. //                Version 1.1  All rights reserved.
  8. //
  9. //        This notice may not be removed from this source code.
  10. //
  11. //    This object is included in the MiscKit by permission from the author
  12. //    and its use is governed by the MiscKit license, found in the file
  13. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  14. //    for a list of all applicable permissions and restrictions.
  15. //    
  16.  
  17. #import "MiscTeePalette.h"
  18. #import "MiscDistributor.subproj/MiscDistributor.h"
  19.  
  20. @implementation  MiscTeePalette
  21.  
  22. - finishInstantiate
  23. {
  24.     id    idBundle;
  25.     id    idImage;
  26.     char buf[MAXPATHLEN + 1];
  27.     
  28.     [super finishInstantiate];
  29.     
  30.     [self associateObject:idTee type:IBObjectPboardType to:idTeeView];
  31.     [self associateObject:idDist type:IBObjectPboardType to:idDistView];
  32.     
  33.     idBundle = [NXBundle bundleForClass:[self class]];
  34.     [idBundle getPath:buf forResource:"MiscTee" ofType:"tiff"];
  35.     idImage = [[NXImage alloc] initFromFile:buf];
  36.     [idTeeView setImage:idImage];
  37.     [idBundle getPath:buf forResource:"MiscDistributor" ofType:"tiff"];
  38.     idImage = [[NXImage alloc] initFromFile:buf];
  39.     [idDistView setImage:idImage];
  40.     
  41.     return self;
  42. }
  43.  
  44. @end
  45.